
package za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Decorator.Model;

import za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Decorator.Model.Animal;
import za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Decorator.Model.AnimalDecorater;


public class LegDecorater extends AnimalDecorater
{
    public LegDecorater(Animal animal){ super(animal); }

    @Override
    public String describe() { return  animal.describe() + "I have legs. " + dance(); }
    
    public String dance(){ return "I can dance."; }
}
